<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    // preloading 'log' component
    'preload'  => array('log'),
    
    // autoloading model and component classes
    'import' => array(
        'application.models.*',
        'application.components.*',
    ),
    'modules' => array(),
    
    // application components
    'components' => array(
        'request' => array(
//      'enableCsrfValidation' => true,
//      'enableCookieValidation' => true,
        ),
        'user' => array(),
        'urlManager' => array(
            'urlFormat'      => 'path',
            'showScriptName' => false,
            'rules'          => array(),
        ),
        'db'           => include(__DIR__) . '/db.php',
        'errorHandler' => array(
            'errorAction' => 'site/error',
        ),
    ),

    // using Yii::app()->params['paramName']
    'params'      => include(__DIR__) . '/params.php',
//  'theme' => 'admin',
);